package labox.innovation.loginserver.loginserverpackets;


/**
 * @author -Wooden-
 *
 */
public class LoginServerFail extends ServerBasePacket {
	
	public static final int REASON_IP_BANNED = 1;

	public static final int REASON_IP_RESERVED = 2;

	/**
	 * 错误的分配ID
	 */
	public static final int REASON_WRONG_HEXID = 3;

	public static final int REASON_ID_RESERVED = 4;

	public static final int REASON_NO_FREE_ID = 5;

	public static final int NOT_AUTHED = 6;

	/**
	 * 已经有游戏服务器注册登陆了
	 */
	public static final int REASON_ALREADY_LOGGED8IN = 7;

	/**
	 * @param reason
	 */
	public LoginServerFail(int reason) {
		writeByte(0x01);
		writeByte(reason);
	}

	@Override
	public byte[] getContent() {
		return getBytes();
	}

	

}
